/*
package com.example.child_protection.controller;

import com.example.child_protection.dto.base.BaseResponseDTO;
import com.example.child_protection.dto.request.SimpleIdRequestDTO;
import com.example.child_protection.dto.request.add.RoleInsertRequestDTO;
import com.example.child_protection.dto.request.update.RoleUpdateRequestDTO;
import com.example.child_protection.service.RoleManageService;
import com.example.child_protection.util.ContentType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

*/
/**
 * 角色信息管理控制层
 * @date 2018-11-2
 * @author Biz
 *//*

@RestController
@RequestMapping("role")
//@Api(value = "/api-role", description = "角色信息管理")
public class RoleController extends BaseController {

    @Autowired
    public RoleManageService roleManageService;

    @ApiOperation(value ="添加角色信息", httpMethod = "POST",response = BaseResponseDTO.class )
    @RequestMapping(value = "/insert", method = RequestMethod.POST, produces = {ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
    public BaseResponseDTO insert(RoleInsertRequestDTO requestDTO)throws Exception{
        BaseResponseDTO responseDTO = roleManageService.insert(requestDTO);
        return responseDTO;
    }

    @ApiOperation(value ="修改角色信息", httpMethod = "POST",response = BaseResponseDTO.class )
    @RequestMapping(value = "/update", method = RequestMethod.POST, produces = {ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
    public BaseResponseDTO update(RoleUpdateRequestDTO requestDTO)throws Exception{
        BaseResponseDTO responseDTO = roleManageService.update(requestDTO);
        return responseDTO;
    }

    @ApiOperation(value ="删除角色信息", httpMethod = "POST",response = BaseResponseDTO.class )
    @RequestMapping(value = "/delete", method = RequestMethod.POST, produces = {ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
    public BaseResponseDTO delete(SimpleIdRequestDTO requestDTO)throws Exception{
        BaseResponseDTO responseDTO = roleManageService.delete(requestDTO);
        return responseDTO;
    }

}
*/
